package com.zhuyh.webgis.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhuyh.webgis.entity.Workdayod;
import com.zhuyh.webgis.service.IWorkdayodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 3247
 * @since 2020-02-09
 */
@RestController
@RequestMapping("/workdayod")
public class WorkdayodController {

    @Autowired
    private IWorkdayodService workdayodService;

    @RequestMapping(value = "/get")
    public List<Workdayod> getWorkdayOd(@PathVariable(name = "time")String time){

        QueryWrapper playQueryWrapper = new QueryWrapper();
        playQueryWrapper.eq("time",time);
        List<Workdayod> list = workdayodService.list(playQueryWrapper);

        return list;
    }

}

